<?php

namespace app\admin\model;

use think\Model;
use think\Db;

class AdminModel extends Model {

    public $results = array('status' => 'error', 'msg' => '', 'data' => '');

    function user_list() {
//        $where['class'] = $class;
//        $where['function'] = $function;
        $rs = Db::table('h_admin_user')
                ->paginate(10);
//      echo  Db::table('h_admin_user')->getLastSql();
//                ->select();
        if (!$rs) {
            return $this->results;
        }
        $this->results['status'] = 'success';
        $this->results['data'] = $rs;
        return $this->results;
    }

}
